<?php
/** 初始化项目 */
require '../app/app.php';

if ($_SESSION['username'] == '' || isset($_SESSION["username"]) == false) {
    echo "<script>alert('当前未登录!');location.href='/?c=login';</script>";
} else {
    include_once('admin_head.php');
    include_once('head.php');
    include_once('left.php');
    if ($_SESSION['sysgrade'] = 5) {
        include_once('logininfrom.php');
    } else {
        include_once('no.php');
    }
    include_once('foot.php');
}
